<!DOCTYPE html>
<html>
<head>
    <title>查看--中软高科-2015</title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="../Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="../Css/style.css" />
    <script type="text/javascript" src="../Js/jquery.js"></script>
    <script type="text/javascript" src="../Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="../Js/bootstrap.js"></script>
    <script type="text/javascript" src="../Js/ckform.js"></script>
    <script type="text/javascript" src="../Js/common.js"></script>
    <script type="text/javascript" src="../Js/ckeditor/ckeditor.js"></script>
 

    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }


    </style>
    <script type="text/javascript">
    $(function () {       
		$('#backid').click(function(){
				window.location.href="index.html";
		 });
    });
    </script>
</head>
<body>
<form action="index.html" method="post" class="definewidth m20">
<table class="table table-bordered table-hover definewidth m10" id="tbody">


</table>
</form>
</body>
<script>

    (function ($) {
        $.getUrlParam = function (name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) return unescape(r[2]); return null;
        }
    })(jQuery);

    var uid = $.getUrlParam("id");
    $.ajax({
            url:"/patient/getPatientDetailById",
            data:{
                id:uid
            },
            method:"GET",
            dataType:"json",
            success: function(vo){
                var list = vo.list;
                var str="";
                var i = 0;
                str+="<tr>\n" +
                    "        <td width=\"10%\" class=\"tableleft\">姓名</td>\n" +
                    "        <td>"+list[i].patientName+"</td>\n" +
                    "    </tr>\n" +
                    "\n" +
                    "    <tr>\n" +
                    "        <td width=\"10%\" class=\"tableleft\">身份证号</td>\n" +
                    "        <td>"+list[i].patientIdCard+"</td>\n" +
                    "    </tr>\n" +
                    "    <tr>\n" +
                    "        <td width=\"10%\" class=\"tableleft\">挂号费</td>\n" +
                    "        <td>"+list[i].expense+"</td>\n" +
                    "    </tr>\n" +
                    "    <tr>\n" +
                    "        <td width=\"10%\" class=\"tableleft\">社保号</td>\n" +
                    "        <td>"+list[i].patientSocietyId+"</td>\n" +
                    "    </tr>\n" +
                    "    <tr>\n" +
                    "        <td width=\"10%\" class=\"tableleft\">联系电话</td>\n" +
                    "        <td>"+list[i].patientPhoneNum+"</td>\n" +
                    "    </tr>\n" +
                    "    <tr>\n" +
                    "        <td width=\"10%\" class=\"tableleft\">是否自费</td>\n" +
                    "        <td>"+list[i].expenseWay+"</td>\n" +
                    "    </tr>\n" +
                    "    <tr>\n" +
                    "        <td width=\"10%\" class=\"tableleft\">性别</td>\n" +
                    "        <td>"+list[i].patientGender+"</td>\n" +
                    "    </tr>\n" +
                    "    <tr>\n" +
                    "        <td width=\"10%\" class=\"tableleft\">年龄</td>\n" +
                    "        <td>"+list[i].patientAge+"</td>\n" +
                    "    </tr>\n" +
                    "    <tr>\n" +
                    "        <td width=\"10%\" class=\"tableleft\">职业</td>\n" +
                    "        <td>"+list[i].patientWork+"</td>\n" +
                    "    </tr>\n" +
                    "    <tr>\n" +
                    "        <td width=\"10%\" class=\"tableleft\">初复诊</td>\n" +
                    "        <td>"+list[i].patientFirst+"</td>\n" +
                    "    </tr>\n" +
                    "    <tr>\n" +
                    "        <td width=\"10%\" class=\"tableleft\">所挂科室</td>\n" +
                    "        <td>"+list[i].patientDept+"</td>\n" +
                    "    </tr>\n" +
                    "    <tr>\n" +
                    "        <td width=\"10%\" class=\"tableleft\">指定医生</td>\n" +
                    "        <td>"+list[i].doctor+"</td>\n" +
                    "    </tr>\n" +
                    "\t<tr>\n" +
                    "        <td width=\"10%\" class=\"tableleft\">备注</td>\n" +
                    "        <td>"+list[i].patientTip+"</td>\n" +
                    "\t</tr>\n" +
                    "    <tr>\n"+
                    "<tr>\n" +
                    "        <td colspan=\"2\">\n" +
                    "\t\t\t<center>\n" +
                    "\t\t\t\t<button type=\"button\" class=\"btn btn-success\" name=\"backid\" id=\"backid\" onclick=\"backId()\">返回列表</button>\n" +
                    "\t\t\t</center>\n" +
                    "\t\t</td>\n" +
                    "    </tr>"

                $("#tbody").html(str);
            }
    })
    function backId(){
        window.location.href="/Registration/index.html"
    }
</script>
</html>